package org.dromara.canteen.domain;

import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 食材管理对象 canteen_food
 *
 * @author Gjb
 * @date 2025-07-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("canteen_food")
public class CanteenFood extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 食材id
     */
    @TableId(value = "food_id")
    private Long foodId;

    /**
     * 食材名称
     */
    private String foodName;

    /**
     * 采购日期
     */
    private String purchaseDate;

    /**
     * 采购数量
     */
//    private Long purchaseQuantity;

    /**
     * 单位
     */
    private String unit;

    /**
     * 预采购
     */
    private Long prePurchaseQuantity;

    /**
     * 采购净重
     */
    private Long purchaseNetWeight;

    /**
     * 采购毛重
     */
    private Long purchaseGrossWeight;

    /**
     * 校验员
     */
    private String checkOperator;

    /**
     * 校区id
     */
    private Long schoolCampusId;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    private String delFlag;

    /**
     * 版本
     */
    @Version
    private Integer version;

    /**
     * 备注
     */
    private String remark;


}
